import { createRouter , createWebHashHistory} from 'vue-router';
  

const routes = [
  {
    path: '/',
    redirect: '/login', //重定向到/login
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import('../views/Login.vue')
  }
]

const
router = createRouter({
   history: createWebHashHistory() ,
routes
})


export default router